package properties;

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : PropertiseDemo2
 * @Author : 54061
 * @Date: 2022/2/15 17:51
 */
public class PropertiesDemo2 {
    public static void main(String[] args) throws IOException {

        Properties properties = new Properties();
        FileReader fr = new FileReader("");

        //一键加载文件的内容到集合中
        properties.load(fr);
        System.out.println("properties = " + properties);
        fr.close();
    }
}
